package com.zhixiang.xaec.service.performance.safeachievements.impl;

import java.util.List;
import javax.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zhixiang.core.dao.BaseDao;
import com.zhixiang.core.service.impl.BaseServiceImpl;
import com.zhixiang.xaec.dao.performance.safeachievements.RatingProjectSetTreeDao;
import com.zhixiang.xaec.entity.performance.safeachievements.RatingProjectSetTree;
import com.zhixiang.xaec.service.performance.safeachievements.RatingProjectSetTreeService;

@Service
public class RatingProjectSetTreeServiceImpl extends BaseServiceImpl<RatingProjectSetTree, Long> implements RatingProjectSetTreeService{

    @Autowired
    private RatingProjectSetTreeDao dao;
    @Override
    public String saveRatingProject(RatingProjectSetTree ratingProjectSetTree) {
        save(ratingProjectSetTree);
        return null;
    }

    @Override
    public List<RatingProjectSetTree> findByParentId(Long id) {
        return dao.findByParentId(id);
    }

    @Resource(type=RatingProjectSetTreeDao.class)
    public void setBaseDao(BaseDao<RatingProjectSetTree, Long> dao) {
        setDao(dao);
        
    }
    

}
